<?php

namespace App\Admin\Controllers\Common;

use App\Admin\Models\SiteStore;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;


class DataController extends Controller
{

    public function getindexdata(Request $request)
    {
        $data['store_count']=SiteStore::where(['audit_status'=>2,'is_del'=>1])->count();
        $data['contract_count']=SiteStore::where(['contract_audit_status'=>2,'is_del'=>1])->count();
        return response()->json(['code' => '000', 'msg' => '获取成功', 'data' => $data]);
    }
}